<html>

<head>
	<title>NwJs Test -- login</title>
	<script src="js/jquery-2.1.4.js"></script>
	<script>
		$(function(){
  			$("#login").bind("click", function(){
  				var username = $("#username").val();

  				console.log("username: " + username);

  				if(!username || username == ""){
  					alert("username is null.");
  					return;
  				}

  				var password = $("#password").val();

  				console.log("password: " + password);

  				if(!password || password == ""){
  					alert("username is null.");
  					return;
  				}

  				alert("login success.");
  			});
		});
	</script>
</head>

<body>
	<div>
		login
	</div>
	<div>
		<div>
			<label>username:</label>
			<input id="username" type="text" name="username"/>
		</div>
		<div>
			<label>password:</label>
			<input id="password" type="password" />
		</div>
		<div>
			<input id="login" type="button" value="login"/>
		</div>
	</div>

</body>

</html>
